#include "StdAfx.h"
#include "NoiseGate.h"


CNoiseGate::CNoiseGate(void)
{
	m_threshold = 0.0015;
}


CNoiseGate::~CNoiseGate(void)
{
}


void CNoiseGate::Process(double *frameIn, double *frameOut, double time)
{
	const int QUEUESIZE = 200000;

    // Loop over the channels
    for(int c=0;  c<2;  c++)
    {
		if(frameOut[c] > m_threshold)
			frameOut[c] = frameIn[c];
		else
			frameOut[c] = 0;

    }
}
